package com.lgb.Service;

import com.lgb.DAO.UserRepository;
import com.lgb.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServicelmpl implements UserService{

    @Autowired
    private UserRepository userRepository;

    @Override
    public User checkUsers(String username, String password) {
        //查询数据
        User user = userRepository.findByUsernameAndPassword(username,password);
        return user;
    }
}
